home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh -f
- #
- # script to detect if the user is on the CDROM tree
- # logic : keep looking for IM file up in the hierarchy
- #
-
- set path = (/usr/bsd /bin /usr/bin /usr/sbin /usr/bin/X11)
- set curdir = `pwd`
-
- while ( "$curdir" != "/" && "$curdir" != "." )
-
- if ( -e $curdir/IM ) then
- exit 1
- endif
-
- set curdir = `dirname $curdir`
-
- end
- exit 0
-